package com.yxw.yx_hotel.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import java.io.Serializable;


/**
 * @author liuxin
 * @create 2024-01-17 15:49:31
 * @description 宿舍表
 */
@Data
@TableName(value ="yx_room")
@ApiModel(value = "宿舍表" , description="yx_room")
public class YxRoomEntity  implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "room_id",type = IdType.INPUT)
    @ApiModelProperty(value="宿舍ID")
    private Long roomId;

    @TableField(value="region_id")
    @ApiModelProperty(value="所属区域ID")
    private Long regionId;

    @TableField(value="region_name")
    @ApiModelProperty(value="区域名称")
    private String regionName;

    @TableField(value="room_name")
    @ApiModelProperty(value="房号(房间名称)")
    private String roomName;

    @TableField(value="bed_cnt")
    @ApiModelProperty(value="床位数量")
    private Integer bedCnt;

    @TableField(value="wy_fee")
    @ApiModelProperty(value="物业费(元/月)")
    private Double wyFee;

    @TableField(value="rent_fee")
    @ApiModelProperty(value="租金(元/月)")
    private Double rentFee;

    @TableField(value="deposit_fee")
    @ApiModelProperty(value="押金(元/床位)")
    private Double depositFee;

    @TableField(value="rend_back_time")
    @ApiModelProperty(value="退租日期")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date rendBackTime;

    @TableField(value="lock_pwd")
    @ApiModelProperty(value="门锁密码")
    private String lockPwd;

    @TableField(value="note")
    @ApiModelProperty(value="备注")
    private String note;

    @TableField(value="create_time")
    @ApiModelProperty(value="创建时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @TableField(value="create_id")
    @ApiModelProperty(value="创建人ID")
    private Long createId;

    @TableField(value="create_name")
    @ApiModelProperty(value="创建人名称")
    private String createName;

    @TableField(value="tenant_id")
    @ApiModelProperty(value="租户ID")
    private Long tenantId;

    @TableField(value="status")
    @ApiModelProperty(value="状态 1：启用即正常房 0：禁用即维修房")
    private Integer status;

    @TableField(exist = false)
    @ApiModelProperty(value="剩余床位数量")
    private Integer remainBedCnt;
}
